<link rel="stylesheet" href="http://www.12301.cc/tpl/pft_show/css/common.css"/>
<link rel="stylesheet" href="http://www.12301.cc/tpl/pft_show/css/morder.css"/>
<!--[if lt IE 7]><div id="OrderContainer" class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6 OrderContainer"> <![endif]-->
<!--[if IE 7]><div id="OrderContainer" class="lt-ie10 lt-ie9 lt-ie8 ie7 OrderContainer"> <![endif]-->
<!--[if IE 8]><div id="OrderContainer" class="lt-ie10 lt-ie9 ie8 OrderContainer"> <![endif]-->
<!--[if IE 9]><div id="OrderContainer" class="lt-ie10 ie9 OrderContainer"><![endif]-->
<!--[if gt IE 9]><!--><div id="OrderContainer" class="OrderContainer"> <!--<![endif]-->
    <input id="gLidHidInp" name="" type="hidden" value="<?=$_GET['lid']?>"/>
    <input id="venueIdHidInp" name="venus_id" type="hidden" value="<?=$var['venus_id']?>"/>
    <!--<div class="topHead">自定义主题产品</div>-->
    <div id="controlWrap" contenteditable="controlWrap">
        <div class="group date">
            <span class="lt">演出日期：</span>
            <div class="inpBox">
                <input id="begintime" type="hidden" value="1"/>
                <input type="text" name="begintime" id="selectDateInput" value="<?=$begintime?>" class="selectDateInput selectInput formInp"/>
                <i id="selectDateTrigger" class="iconfont">&#xe65b;</i>
            </div>
        </div>
        <div class="group">
            <span class="lt">演出时间：</span>
            <div class="inpBox">
                <input id="roundIdHidInp" name="round_id" type="hidden"/>
                <input type="text" name="" id="selectchangciInput" readonly class="selectchangciInput selectInput formInp"/>
                <i id="selectChangciTrigger" class="iconfont">&#xe67e;</i>
            </div>
        </div>
    </div>
    <div id="proContainer" class="proContainer">
        <table id="proTable" cellspacing="0" class="ui-table-list tb_book proTable">
            <thead>
            <tr>
                <td class="col col_1 thead">分区</td>
                <td class="col col_2 thead">库存</td>
                <td class="col col_3 thead">票名称</td>
                <td class="col col_4 thead">门市价</td>
                <td class="col col_5 thead">建议零售价</td>
                <td class="col col_6 thead">结算价</td>
                <td class="col col_7 thead">预订数量</td>
                <td class="col col_8 thead">小计</td>
            </tr>
            </thead>
            <tbody>
            <?foreach($products_area as $area_id=>$plist):?>
                <?foreach($plist['list'] as $key=>$pds):?>
                    <tr>
                        <?if($key==0 && $plist['total']>1):?>
                            <td id="area_<?=$pds['area_id']?>" rowspan="<?=$plist['total']?>" valign="middle"><?=$pds['zone_name']?></td>
                            <td class="storage_td" id="storage_td_<?=$pds['area_id']?>" rowspan="2" valign="middle" style="border-right:1px solid #F1F1F1;">-</td>
                        <?elseif($key==0 && $plist['total']==1):?>
                            <td id="area_<?=$pds['area_id']?>"><?=$pds['zone_name']?></td>
                            <td class="storage_td" id="storage_td_<?=$pds['area_id']?>">-</td>
                        <?endif;?>
                        <td><?=$pds['ttitle']?></td>
                        <td><?=$pds['tprice']?></td>
                        <td class="orign"><span class="yen">&yen;</span><span class="num"><?=$pds['uprice']/100?></span></td>
                        <td class="orign"><span class="yen">&yen;</span><span class="num"><?=$pds['jsprice']/100?></span></td>
                        <td class="coutTd">
                            <a href="javascript:void(0)" class="iconfont sub disable subBtn countBtn">&#xe67a;</a>
                            <input name="c_area[<?=$pds['pid']?>]" value="<?=$pds['area_id']?>" type="hidden"/>
                            <input type="text"
                                   class="ui-form-txt-a formInp countInp countInp_<?=$pds['area_id']?>"
                                   data-pid="<?=$pds['pid']?>"
                                   data-storage=""
                                   data-areaid="<?=$pds['area_id']?>"
                                   data-tprice="<?=$pds['jsprice']/100?>"
                                   value="0"
                                   name="c_pids[<?=$pds['pid']?>]"/>
                            <a href="javascript:void(0)" class="iconfont plus countBtn plusBtn plus_<?=$pds['area_id']?>">&#xe639;</a>
                        </td>
                        <td class="orign stotal"><span class="yen">&yen;</span><span class="num smallTotalNum">0</span></td>
                    </tr>
                <?endforeach;?>
            <?endforeach;?>
            </tbody>
        </table>
        <div style="display:none" id="tableLoading" class="tableLoading"><i class="iconfont loading">&#xe646;</i><span class="t">正在查询该场次库存...</span></div>
    </div>
</div>
<div style="display:none" id="calendarWrap"></div>
<div id="changciListWrap" class="changciListWrap">
    <div id="changciListCon" class="changciListCon">
        <ul class="headUl">
            <li class="headLi col head col_1">场次名称</li>
            <li class="headLi col head col_2">时间</li>
            <li class="headLi col head col_2">余票</li>
        </ul>
        <ul id="changciUl" class="changciUl"></ul>
    </div>
</div>
<!--场次列表模板-->
<script id="changciListTpl" type="text/template">
    <li class="changciItem" data-id="<%=id%>" data-time="<%=begintime%>-<%=endtime%>" data-areastorage="<%=area_storage%>">
        <ul>
            <li class="changciLi col item col_1"><%=title%></li>
            <li class="changciLi col item col_2"><%=begintime%>-<%=endtime%></li>
            <li class="changciLi col item col_3"><%=storage%></li>
        </ul>
    </li>
</script>
<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
<script type="text/javascript" src="http://wx.12301.cc/public/js/common/class.js"></script>
<script type="text/javascript" src="http://wx.12301.cc/public/js/common/ajax.js"></script>
<script type="text/javascript" src="http://www.12301.cc/tpl/pft_show/js/plugin/calendarCore.js"></script>
<script type="text/javascript" src="http://www.12301.cc/tpl/pft_show/js/morder.js?v=1"></script>